/*
 * Created on 12/02/2005
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package br.ufal.tci.nexos.arcolive.gui;

import java.awt.Color;

import javax.swing.JDesktopPane;

/**
 * @author Administrador
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class Desktop {

	private static Desktop singletonInstance;
	private JDesktopPane desktopPane;
	
	private Desktop() {
		this.desktopPane = new JDesktopPane();
		this.setBackground();
	}
	
	public static Desktop getInstance() {
		if (singletonInstance == null) {
			singletonInstance = new Desktop();
		}
		return singletonInstance;
	}
	
	private void setBackground() {
		this.desktopPane.setBackground(new Color(21, 153, 251));
	}
	
	public JDesktopPane getDesktopPane() {
		return this.desktopPane;
	}
	
	public void setDesktopPane(JDesktopPane desktopPane) {
		this.desktopPane = desktopPane;
	}
	
}